home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Development Tools & Languages / Macintosh Common Lisp Related / User Contributions / oodles-of-utils.sea / oodles-of-utils / mixin-madness / simple-view-mixins / static-text-svm.lisp < prev   
MacBinary  |  1992-07-16  |  3.9 KB  |  [TEXT/CCL2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Jul 16 15:08:02 1992, modified Thu Jul 16 15:08:02 1992, creator Common Lisp 2, type ASCII, 3263 bytes "static-text-svm.lisp" , at 0xd3f 442 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID raw Group 3 FAX bitmap default (weak)
16% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CCL2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 14 73 74 61 74 69 63 | 2d 74 65 78 74 2d 73 76 |..static|-text-sv|
|00000010| 6d 2e 6c 69 73 70 00 00 | 00 00 00 00 00 00 00 00 |m.lisp..|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 43 4c | 32 01 00 00 00 00 00 00 |.TEXTCCL|2.......|
|00000050| 00 00 00 00 00 0c bf 00 | 00 01 ba a6 8b 79 92 a6 |........|.....y..|
|00000060| 8b 79 92 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.y......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 05 70 00 00 |........|.....p..|
|00000080| 28 69 6e 2d 70 61 63 6b | 61 67 65 20 3a 6f 6f 75 |(in-pack|age :oou|
|00000090| 29 0d 28 6f 6f 75 2d 70 | 72 6f 76 69 64 65 20 3a |).(oou-p|rovide :|
|000000a0| 73 74 61 74 69 63 2d 74 | 65 78 74 2d 73 76 6d 29 |static-t|ext-svm)|
|000000b0| 0d 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |.;;;;;;;|;;;;;;;;|
|000000c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000f0| 3b 3b 3b 3b 3b 3b 3b 0d | 3b 3b 20 73 74 61 74 69 |;;;;;;;.|;; stati|
|00000100| 63 2d 74 65 78 74 2d 73 | 76 6d 2e 4c 69 73 70 0d |c-text-s|vm.Lisp.|
|00000110| 3b 3b 0d 3b 3b 20 43 6f | 70 79 72 69 67 68 74 20 |;;.;; Co|pyright |
|00000120| a9 20 31 39 39 32 20 4e | 6f 72 74 68 77 65 73 74 |. 1992 N|orthwest|
|00000130| 65 72 6e 20 55 6e 69 76 | 65 72 73 69 74 79 20 49 |ern Univ|ersity I|
|00000140| 6e 73 74 69 74 75 74 65 | 20 66 6f 72 20 74 68 65 |nstitute| for the|
|00000150| 20 4c 65 61 72 6e 69 6e | 67 20 53 63 69 65 6e 63 | Learnin|g Scienc|
|00000160| 65 73 0d 3b 3b 20 41 6c | 6c 20 52 69 67 68 74 73 |es.;; Al|l Rights|
|00000170| 20 52 65 73 65 72 76 65 | 64 0d 3b 3b 0d 3b 3b 20 | Reserve|d.;;.;; |
|00000180| 61 75 74 68 6f 72 3a 20 | 4d 69 63 68 61 65 6c 20 |author: |Michael |
|00000190| 53 2e 20 45 6e 67 62 65 | 72 0d 3b 3b 0d 3b 3b 20 |S. Engbe|r.;;.;; |
|000001a0| 6d 69 78 69 6e 20 66 6f | 72 20 61 64 64 69 6e 67 |mixin fo|r adding|
|000001b0| 20 73 74 61 74 69 63 20 | 74 65 78 74 20 74 6f 20 | static |text to |
|000001c0| 76 69 65 77 73 0d 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |views.;;|;;;;;;;;|
|000001d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000200| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 0d 0d 28 6f |;;;;;;;;|;;;;..(o|
|00000210| 6f 75 2d 64 65 70 65 6e | 64 65 6e 63 69 65 73 20 |ou-depen|dencies |
|00000220| 3a 73 69 6d 70 6c 65 2d | 76 69 65 77 2d 63 65 0d |:simple-|view-ce.|
|00000230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000240| 20 20 3a 71 75 69 63 6b | 64 72 61 77 2d 75 0d 20 | :quick|draw-u. |
|00000250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000260| 20 3a 74 72 61 70 73 2d | 75 29 0d 0d 28 65 78 70 | :traps-|u)..(exp|
|00000270| 6f 72 74 20 27 28 73 74 | 61 74 69 63 2d 74 65 78 |ort '(st|atic-tex|
|00000280| 74 2d 73 76 6d 20 74 65 | 78 74 2d 6a 75 73 74 20 |t-svm te|xt-just |
|00000290| 74 65 78 74 2d 6d 61 72 | 67 69 6e 73 20 74 65 78 |text-mar|gins tex|
|000002a0| 74 2d 73 74 72 69 6e 67 | 29 29 0d 0d 3b 3b 3b 3b |t-string|))..;;;;|
|000002b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000002c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000002d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000002e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000002f0| 3b 3b 0d 0d 28 64 65 66 | 63 6c 61 73 73 20 73 74 |;;..(def|class st|
|00000300| 61 74 69 63 2d 74 65 78 | 74 2d 73 76 6d 20 28 29 |atic-tex|t-svm ()|
|00000310| 0d 20 20 28 28 74 65 78 | 74 2d 73 74 72 69 6e 67 |. ((tex|t-string|
|00000320| 20 3a 69 6e 69 74 61 72 | 67 20 3a 74 65 78 74 2d | :initar|g :text-|
|00000330| 73 74 72 69 6e 67 0d 20 | 20 20 20 20 20 20 20 20 |string. | |
|00000340| 20 20 20 20 20 20 20 3a | 61 63 63 65 73 73 6f 72 | :|accessor|
|00000350| 20 74 65 78 74 2d 73 74 | 72 69 6e 67 29 0d 20 20 | text-st|ring). |
|00000360| 20 28 63 6f 6c 6f 72 2d | 6c 69 73 74 20 20 3a 69 | (color-|list :i|
|00000370| 6e 69 74 61 72 67 20 3a | 70 61 72 74 2d 63 6f 6c |nitarg :|part-col|
|00000380| 6f 72 2d 6c 69 73 74 29 | 0d 20 20 20 28 74 65 78 |or-list)|. (tex|
|00000390| 74 2d 6a 75 73 74 29 29 | 0d 20 20 28 3a 64 65 66 |t-just))|. (:def|
|000003a0| 61 75 6c 74 2d 69 6e 69 | 74 61 72 67 73 0d 20 20 |ault-ini|targs. |
|000003b0| 20 20 3a 74 65 78 74 2d | 73 74 72 69 6e 67 20 20 | :text-|string |
|000003c0| 20 20 20 22 68 69 2c 68 | 6f 22 0d 20 20 20 20 3a | "hi,h|o". :|
|000003d0| 74 65 78 74 2d 6a 75 73 | 74 20 20 20 20 20 20 20 |text-jus|t |
|000003e0| 3a 63 65 6e 74 65 72 0d | 20 20 20 20 3a 70 61 72 |:center.| :par|
|000003f0| 74 2d 63 6f 6c 6f 72 2d | 6c 69 73 74 20 6e 69 6c |t-color-|list nil|
|00000400| 29 29 0d 0d 28 64 65 66 | 6d 65 74 68 6f 64 20 69 |))..(def|method i|
|00000410| 6e 69 74 69 61 6c 69 7a | 65 2d 69 6e 73 74 61 6e |nitializ|e-instan|
|00000420| 63 65 20 3a 61 66 74 65 | 72 20 28 28 73 76 20 73 |ce :afte|r ((sv s|
|00000430| 74 61 74 69 63 2d 74 65 | 78 74 2d 73 76 6d 29 20 |tatic-te|xt-svm) |
|00000440| 26 72 65 73 74 20 69 6e | 69 74 61 72 67 73 20 26 |&rest in|itargs &|
|00000450| 6b 65 79 20 74 65 78 74 | 2d 6a 75 73 74 29 0d 20 |key text|-just). |
|00000460| 20 28 64 65 63 6c 61 72 | 65 20 28 64 79 6e 61 6d | (declar|e (dynam|
|00000470| 69 63 2d 65 78 74 65 6e | 74 20 69 6e 69 74 61 72 |ic-exten|t initar|
|00000480| 67 73 29 0d 20 20 20 20 | 20 20 20 20 20 20 20 28 |gs). | (|
|00000490| 69 67 6e 6f 72 65 20 69 | 6e 69 74 61 72 67 73 29 |ignore i|nitargs)|
|000004a0| 29 0d 20 20 28 73 65 74 | 66 20 28 74 65 78 74 2d |). (set|f (text-|
|000004b0| 6a 75 73 74 20 73 76 29 | 20 74 65 78 74 2d 6a 75 |just sv)| text-ju|
|000004c0| 73 74 29 29 0d 0d 28 64 | 65 66 70 61 73 63 61 6c |st))..(d|efpascal|
|000004d0| 20 64 75 6d 6d 79 2d 45 | 72 61 73 65 52 65 63 74 | dummy-E|raseRect|
|000004e0| 20 28 3a 70 74 72 20 72 | 20 3a 76 6f 69 64 29 20 | (:ptr r| :void) |
|000004f0| 28 64 65 63 6c 61 72 65 | 20 28 69 67 6e 6f 72 65 |(declare| (ignore|
|00000500| 20 72 29 29 29 0d 0d 28 | 64 65 66 6d 65 74 68 6f | r)))..(|defmetho|
|00000510| 64 20 76 69 65 77 2d 64 | 72 61 77 2d 63 6f 6e 74 |d view-d|raw-cont|
|00000520| 65 6e 74 73 20 3a 61 66 | 74 65 72 20 28 28 73 76 |ents :af|ter ((sv|
|00000530| 20 73 74 61 74 69 63 2d | 74 65 78 74 2d 73 76 6d | static-|text-svm|
|00000540| 29 29 0d 20 20 28 6d 75 | 6c 74 69 70 6c 65 2d 76 |)). (mu|ltiple-v|
|00000550| 61 6c 75 65 2d 62 69 6e | 64 20 28 74 6f 70 4c 65 |alue-bin|d (topLe|
|00000560| 66 74 20 62 6f 74 52 69 | 67 68 74 29 20 28 74 65 |ft botRi|ght) (te|
|00000570| 78 74 2d 63 6f 72 6e 65 | 72 73 20 73 76 29 0d 20 |xt-corne|rs sv). |
|00000580| 20 20 20 28 72 6c 65 74 | 20 28 28 72 20 3a 52 65 | (rlet| ((r :Re|
|00000590| 63 74 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ct. | |
|000005a0| 20 3a 74 6f 70 4c 65 66 | 74 20 74 6f 70 4c 65 66 | :topLef|t topLef|
|000005b0| 74 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t. | |
|000005c0| 3a 62 6f 74 74 6f 6d 52 | 69 67 68 74 20 62 6f 74 |:bottomR|ight bot|
|000005d0| 52 69 67 68 74 29 29 0d | 20 20 20 20 20 20 28 77 |Right)).| (w|
|000005e0| 69 74 68 2d 63 73 74 72 | 73 20 28 28 73 20 28 74 |ith-cstr|s ((s (t|
|000005f0| 65 78 74 2d 73 74 72 69 | 6e 67 20 73 76 29 29 29 |ext-stri|ng sv)))|
|00000600| 0d 20 20 20 20 20 20 20 | 20 28 77 69 74 68 2d 66 |. | (with-f|
|00000610| 6f 72 65 2d 63 6f 6c 6f | 72 20 28 67 65 74 66 20 |ore-colo|r (getf |
|00000620| 28 70 61 72 74 2d 63 6f | 6c 6f 72 2d 6c 69 73 74 |(part-co|lor-list|
|00000630| 20 73 76 29 20 3a 74 65 | 78 74 20 2a 62 6c 61 63 | sv) :te|xt *blac|
|00000640| 6b 2d 63 6f 6c 6f 72 2a | 29 0d 20 20 20 20 20 20 |k-color*|). |
|00000650| 20 20 20 20 28 77 69 74 | 68 2d 66 6f 6e 74 2d 73 | (wit|h-font-s|
|00000660| 70 65 63 20 28 76 69 65 | 77 2d 66 6f 6e 74 20 73 |pec (vie|w-font s|
|00000670| 76 29 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 28 |v). | (|
|00000680| 77 69 74 68 2d 70 61 74 | 63 68 65 64 2d 74 72 61 |with-pat|ched-tra|
|00000690| 70 20 28 23 5f 45 72 61 | 73 65 52 65 63 74 20 64 |p (#_Era|seRect d|
|000006a0| 75 6d 6d 79 2d 45 72 61 | 73 65 52 65 63 74 29 0d |ummy-Era|seRect).|
|000006b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 28 23 | | (#|
|000006c0| 5f 54 65 78 74 42 6f 78 | 20 73 20 28 74 65 78 74 |_TextBox| s (text|
|000006d0| 2d 6c 65 6e 67 74 68 20 | 73 76 29 20 72 20 28 73 |-length |sv) r (s|
|000006e0| 6c 6f 74 2d 76 61 6c 75 | 65 20 73 76 20 27 74 65 |lot-valu|e sv 'te|
|000006f0| 78 74 2d 6a 75 73 74 29 | 29 29 29 29 29 29 29 29 |xt-just)|))))))))|
|00000700| 0d 0d 28 64 65 66 6d 65 | 74 68 6f 64 20 73 65 74 |..(defme|thod set|
|00000710| 2d 76 69 65 77 2d 66 6f | 6e 74 20 3a 61 66 74 65 |-view-fo|nt :afte|
|00000720| 72 20 28 28 73 76 20 73 | 74 61 74 69 63 2d 74 65 |r ((sv s|tatic-te|
|00000730| 78 74 2d 73 76 6d 29 20 | 66 6f 6e 74 2d 73 70 65 |xt-svm) |font-spe|
|00000740| 63 29 0d 20 20 28 64 65 | 63 6c 61 72 65 20 28 69 |c). (de|clare (i|
|00000750| 67 6e 6f 72 65 20 66 6f | 6e 74 2d 73 70 65 63 29 |gnore fo|nt-spec)|
|00000760| 29 0d 20 20 28 69 6e 76 | 61 6c 69 64 61 74 65 2d |). (inv|alidate-|
|00000770| 76 69 65 77 20 73 76 20 | 74 29 29 0d 0d 28 64 65 |view sv |t))..(de|
|00000780| 66 6d 65 74 68 6f 64 20 | 28 73 65 74 66 20 74 65 |fmethod |(setf te|
|00000790| 78 74 2d 73 74 72 69 6e | 67 29 20 3a 61 66 74 65 |xt-strin|g) :afte|
|000007a0| 72 20 28 6e 65 77 2d 74 | 65 78 74 2d 73 74 72 69 |r (new-t|ext-stri|
|000007b0| 6e 67 20 28 73 76 20 73 | 74 61 74 69 63 2d 74 65 |ng (sv s|tatic-te|
|000007c0| 78 74 2d 73 76 6d 29 29 | 0d 20 20 28 64 65 63 6c |xt-svm))|. (decl|
|000007d0| 61 72 65 20 28 69 67 6e | 6f 72 65 20 6e 65 77 2d |are (ign|ore new-|
|000007e0| 74 65 78 74 2d 73 74 72 | 69 6e 67 29 29 0d 20 20 |text-str|ing)). |
|000007f0| 28 69 6e 76 61 6c 69 64 | 61 74 65 2d 76 69 65 77 |(invalid|ate-view|
|00000800| 20 73 76 20 74 29 29 0d | 0d 28 64 65 66 6d 65 74 | sv t)).|.(defmet|
|00000810| 68 6f 64 20 74 65 78 74 | 2d 6a 75 73 74 20 28 28 |hod text|-just ((|
|00000820| 73 76 20 73 74 61 74 69 | 63 2d 74 65 78 74 2d 73 |sv stati|c-text-s|
|00000830| 76 6d 29 29 0d 20 20 3b | 3b 69 6e 74 65 72 6e 61 |vm)). ;|;interna|
|00000840| 6c 6c 79 20 74 65 78 74 | 2d 6a 75 73 74 20 69 73 |lly text|-just is|
|00000850| 20 73 74 6f 72 65 64 20 | 61 73 20 74 68 65 20 63 | stored |as the c|
|00000860| 6f 72 72 65 73 70 6f 6e | 64 69 6e 67 20 54 6f 6f |orrespon|ding Too|
|00000870| 6c 42 6f 78 20 63 6f 6e | 73 74 61 6e 74 0d 20 20 |lBox con|stant. |
|00000880| 28 65 63 61 73 65 20 28 | 73 6c 6f 74 2d 76 61 6c |(ecase (|slot-val|
|00000890| 75 65 20 73 76 20 27 74 | 65 78 74 2d 6a 75 73 74 |ue sv 't|ext-just|
|000008a0| 29 0d 20 20 20 20 28 23 | 2e 23 24 74 65 46 6c 75 |). (#|.#$teFlu|
|000008b0| 73 68 44 65 66 61 75 6c | 74 20 3a 64 65 66 61 75 |shDefaul|t :defau|
|000008c0| 6c 74 29 0d 20 20 20 20 | 28 23 2e 23 24 74 65 43 |lt). |(#.#$teC|
|000008d0| 65 6e 74 65 72 20 20 20 | 20 20 20 20 3a 63 65 6e |enter | :cen|
|000008e0| 74 65 72 29 0d 20 20 20 | 20 28 23 2e 23 24 74 65 |ter). | (#.#$te|
|000008f0| 46 6c 75 73 68 52 69 67 | 68 74 20 20 20 3a 72 69 |FlushRig|ht :ri|
|00000900| 67 68 74 29 0d 20 20 20 | 20 28 23 2e 23 24 74 65 |ght). | (#.#$te|
|00000910| 46 6c 75 73 68 4c 65 66 | 74 20 20 20 20 3a 6c 65 |FlushLef|t :le|
|00000920| 66 74 29 29 29 0d 0d 28 | 64 65 66 6d 65 74 68 6f |ft)))..(|defmetho|
|00000930| 64 20 28 73 65 74 66 20 | 74 65 78 74 2d 6a 75 73 |d (setf |text-jus|
|00000940| 74 29 20 28 6e 65 77 2d | 74 65 78 74 2d 6a 75 73 |t) (new-|text-jus|
|00000950| 74 20 28 73 76 20 73 74 | 61 74 69 63 2d 74 65 78 |t (sv st|atic-tex|
|00000960| 74 2d 73 76 6d 29 29 0d | 20 20 3b 3b 69 6e 74 65 |t-svm)).| ;;inte|
|00000970| 72 6e 61 6c 6c 79 20 74 | 65 78 74 2d 6a 75 73 74 |rnally t|ext-just|
|00000980| 20 69 73 20 73 74 6f 72 | 65 64 20 61 73 20 74 68 | is stor|ed as th|
|00000990| 65 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |e corres|ponding |
|000009a0| 54 6f 6f 6c 42 6f 78 20 | 63 6f 6e 73 74 61 6e 74 |ToolBox |constant|
|000009b0| 0d 20 20 28 73 65 74 66 | 20 28 73 6c 6f 74 2d 76 |. (setf| (slot-v|
|000009c0| 61 6c 75 65 20 73 76 20 | 27 74 65 78 74 2d 6a 75 |alue sv |'text-ju|
|000009d0| 73 74 29 20 28 65 63 61 | 73 65 20 6e 65 77 2d 74 |st) (eca|se new-t|
|000009e0| 65 78 74 2d 6a 75 73 74 | 0d 20 20 20 20 20 20 20 |ext-just|. |
|000009f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 28 3a | | (:|
|00000a10| 64 65 66 61 75 6c 74 20 | 23 24 74 65 46 6c 75 73 |default |#$teFlus|
|00000a20| 68 44 65 66 61 75 6c 74 | 29 0d 20 20 20 20 20 20 |hDefault|). |
|00000a30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 28 | | (|
|00000a50| 3a 63 65 6e 74 65 72 20 | 20 23 24 74 65 43 65 6e |:center | #$teCen|
|00000a60| 74 65 72 29 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ter). | |
|00000a70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a80| 20 20 20 20 20 20 20 20 | 20 20 28 3a 72 69 67 68 | | (:righ|
|00000a90| 74 20 20 20 23 24 74 65 | 46 6c 75 73 68 52 69 67 |t #$te|FlushRig|
|00000aa0| 68 74 29 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ht). | |
|00000ab0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ac0| 20 20 20 20 20 20 20 20 | 20 28 3a 6c 65 66 74 20 | | (:left |
|00000ad0| 20 20 20 23 24 74 65 46 | 6c 75 73 68 4c 65 66 74 | #$teF|lushLeft|
|00000ae0| 29 29 29 0d 20 20 28 69 | 6e 76 61 6c 69 64 61 74 |))). (i|nvalidat|
|00000af0| 65 2d 76 69 65 77 20 73 | 76 29 0d 20 20 6e 65 77 |e-view s|v). new|
|00000b00| 2d 74 65 78 74 2d 6a 75 | 73 74 29 0d 0d 28 64 65 |-text-ju|st)..(de|
|00000b10| 66 6d 65 74 68 6f 64 20 | 74 65 78 74 2d 6d 61 72 |fmethod |text-mar|
|00000b20| 67 69 6e 73 20 28 28 73 | 76 20 73 74 61 74 69 63 |gins ((s|v static|
|00000b30| 2d 74 65 78 74 2d 73 76 | 6d 29 29 0d 20 20 28 64 |-text-sv|m)). (d|
|00000b40| 65 63 6c 61 72 65 20 28 | 69 67 6e 6f 72 65 20 73 |eclare (|ignore s|
|00000b50| 76 29 29 0d 20 20 28 76 | 61 6c 75 65 73 20 23 40 |v)). (v|alues #@|
|00000b60| 28 30 20 30 29 20 23 40 | 28 30 20 30 29 29 29 0d |(0 0) #@|(0 0))).|
|00000b70| 0d 28 64 65 66 6d 65 74 | 68 6f 64 20 74 65 78 74 |.(defmet|hod text|
|00000b80| 2d 63 6f 72 6e 65 72 73 | 20 28 28 73 76 20 73 74 |-corners| ((sv st|
|00000b90| 61 74 69 63 2d 74 65 78 | 74 2d 73 76 6d 29 29 0d |atic-tex|t-svm)).|
|00000ba0| 20 20 28 6d 75 6c 74 69 | 70 6c 65 2d 76 61 6c 75 | (multi|ple-valu|
|00000bb0| 65 2d 62 69 6e 64 20 28 | 74 6f 70 4c 65 66 74 20 |e-bind (|topLeft |
|00000bc0| 62 6f 74 52 69 67 68 74 | 29 20 28 66 6f 63 75 73 |botRight|) (focus|
|00000bd0| 65 64 2d 63 6f 72 6e 65 | 72 73 20 73 76 29 0d 20 |ed-corne|rs sv). |
|00000be0| 20 20 20 28 6d 75 6c 74 | 69 70 6c 65 2d 76 61 6c | (mult|iple-val|
|00000bf0| 75 65 2d 62 69 6e 64 20 | 28 74 6c 2d 6d 61 72 67 |ue-bind |(tl-marg|
|00000c00| 69 6e 20 62 72 2d 6d 61 | 72 67 69 6e 29 20 28 74 |in br-ma|rgin) (t|
|00000c10| 65 78 74 2d 6d 61 72 67 | 69 6e 73 20 73 76 29 0d |ext-marg|ins sv).|
|00000c20| 20 20 20 20 20 20 28 76 | 61 6c 75 65 73 20 28 61 | (v|alues (a|
|00000c30| 64 64 2d 70 6f 69 6e 74 | 73 20 74 6f 70 4c 65 66 |dd-point|s topLef|
|00000c40| 74 20 74 6c 2d 6d 61 72 | 67 69 6e 29 20 28 73 75 |t tl-mar|gin) (su|
|00000c50| 62 74 72 61 63 74 2d 70 | 6f 69 6e 74 73 20 62 6f |btract-p|oints bo|
|00000c60| 74 52 69 67 68 74 20 62 | 72 2d 6d 61 72 67 69 6e |tRight b|r-margin|
|00000c70| 29 29 29 29 29 0d 0d 28 | 64 65 66 6d 65 74 68 6f |)))))..(|defmetho|
|00000c80| 64 20 74 65 78 74 2d 6c | 65 6e 67 74 68 20 28 28 |d text-l|ength ((|
|00000c90| 73 76 20 73 74 61 74 69 | 63 2d 74 65 78 74 2d 73 |sv stati|c-text-s|
|00000ca0| 76 6d 29 29 0d 20 20 28 | 6c 65 6e 67 74 68 20 28 |vm)). (|length (|
|00000cb0| 74 65 78 74 2d 73 74 72 | 69 6e 67 20 73 76 29 29 |text-str|ing sv))|
|00000cc0| 29 0d 0d 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |)..;;;;;|;;;;;;;;|
|00000cd0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000ce0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000cf0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000d00| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 0d 0d 23 7c 0d 20 20 |;;;;;;;;|;..#|. |
|00000d10| 20 65 78 61 6d 70 6c 65 | 20 63 6f 64 65 20 63 61 | example| code ca|
|00000d20| 6e 20 62 65 20 66 6f 75 | 6e 64 20 69 6e 20 73 74 |n be fou|nd in st|
|00000d30| 61 74 69 63 2d 74 65 78 | 74 2d 64 69 0d 7c 23 00 |atic-tex|t-di.|#.|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 01 00 00 00 01 68 | 00 00 00 68 00 00 00 52 |.......h|...h...R|
|00000d90| 74 20 20 23 2e 23 24 74 | 65 4a 75 73 74 52 69 67 |t #.#$t|eJustRig|
|00000da0| 68 74 29 29 29 0d 20 20 | 28 69 6e 76 61 6c 69 64 |ht))). |(invalid|
|00000db0| 14 73 74 61 74 69 63 2d | 74 65 78 74 2d 73 76 6d |.static-|text-svm|
|00000dc0| 2e 6c 69 73 70 2d 02 00 | 00 00 54 45 58 54 43 43 |.lisp-..|..TEXTCC|
|00000dd0| 00 00 54 45 58 54 43 43 | 4c 32 01 00 00 9c 00 00 |..TEXTCC|L2......|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 a5 2c 48 0c 00 00 | 0c bf 00 00 01 ba 20 20 |...,H...|...... |
|00000e00| 28 64 65 63 6c 61 72 65 | 20 28 69 67 6e 6f 72 65 |(declare| (ignore|
|00000e10| 20 64 69 29 29 0d 20 20 | 28 76 61 6c 75 65 73 20 | di)). |(values |
|00000e20| 23 40 28 30 20 30 29 20 | 23 40 28 30 20 30 29 29 |#@(0 0) |#@(0 0))|
|00000e30| 29 0d 0d 28 64 65 66 6d | 65 74 68 6f 64 20 74 65 |)..(defm|ethod te|
|00000e40| 78 74 2d 63 6f 72 6e 65 | 72 73 20 28 28 64 69 20 |xt-corne|rs ((di |
|00000e50| 73 74 61 74 69 63 2d 74 | 65 78 74 2d 64 69 6d 29 |static-t|ext-dim)|
|00000e60| 29 0d 20 20 28 6d 75 6c | 74 69 70 6c 65 2d 76 61 |). (mul|tiple-va|
|00000e70| 6c 75 65 2d 62 69 6e 64 | 20 28 74 6f 70 4c 65 66 |lue-bind| (topLef|
|00000e80| 00 00 00 0a 00 01 00 16 | 0a 00 01 00 00 00 00 00 |........|........|
|00000e90| 00 48 00 0a 43 6f 75 72 | 69 65 72 00 00 00 00 00 |.H..Cour|ier.....|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 06 00 08 | 00 ac 01 15 03 4d 03 23 |........|.....M.#|
|00000ec0| 00 ac 01 15 03 4d 03 23 | 00 00 00 00 00 00 06 80 |.....M.#|........|
|00000ed0| 00 00 06 80 00 00 00 78 | 01 00 00 00 00 0a 00 01 |.......x|........|
|00000ee0| 07 43 6f 75 72 69 65 72 | 00 00 01 00 00 00 01 68 |.Courier|.......h|
|00000ef0| 00 00 00 68 00 00 00 52 | 00 c7 ca 60 07 b8 00 00 |...h...R|...`....|
|00000f00| 00 1c 00 52 00 01 46 52 | 45 44 00 01 00 12 4d 50 |...R..FR|ED....MP|
|00000f10| 53 52 00 00 00 2a 00 02 | ff ff 00 00 00 00 00 00 |SR...*..|........|
|00000f20| 00 00 00 03 ff ff 00 00 | 00 5a 00 00 00 00 03 ed |........|.Z......|
|00000f30| ff ff 00 00 00 0e 00 c8 | c5 64 00 00 00 00 00 00 |........|.d......|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+